package com.ian.service.impl;

import com.ian.dao.PerAtlikeMapper;
import com.ian.pojo.PerAtlike;
import com.ian.service.PerAtlikeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PerAtlikeServiceImpl implements PerAtlikeService {
    @Autowired
    PerAtlikeMapper perAtlikeMapper;

    @Override
    public int insert(PerAtlike record) {
        return perAtlikeMapper.insert(record);
    }

    @Override
    public int deleteByPrimaryKey(Integer perAtlikeId) {
        return perAtlikeMapper.deleteByPrimaryKey(perAtlikeId);
    }

    @Override
    public PerAtlike selectByArticleId(Integer perArticleId) {
        return perAtlikeMapper.selectByArticleId(perArticleId);
    }

    @Override
    public List<PerAtlike> selectByUid(Integer perUserId) {
        return perAtlikeMapper.selectByUid(perUserId);
    }

    @Override
    public int deleteByArticleId(Integer perArticleId) {
        return perAtlikeMapper.deleteByArticleId(perArticleId);
    }
}
